/********************************************************************************
 * Project Name		[JavaSE_Fundamentals]
 * File Name     	[Assertion.java]
 * Creation Date 	[2015-01-01]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ********************************************************************************/
package jdk5;

/**
 * 断言<br/>
 * 
 * 需要在Run Configuration-Arguments-VM arguments启用 -ea<br/>
 * 
 * @author 不落的太阳(Sean Yang aka ShortPeace)
 * @version 1.0
 * @since jdk 1.8
 * 
 */
public class Assertion {

	public static void main(String[] args) {
		double d1 = 10;
		assert d1 > 0;

		double d2 = -10;
		assert d2 > 0 : "d2 is negative number";
	}
}
